(echo -n "internal_styles.c: mkstyle.sh " ; echo style/*.style ; /bin/echo -e "\t./mkstyle.sh > $@ || (rm -f $@ ; exit 1)" ) >> /tmp/dep
echo Edit Makefile and bring in /tmp/dep
-VERSIONU=1_1_1_beta08122003
-VERSIOND=1.1.1_beta08122003
+VERSIONU=1_1_1_beta08262003
+VERSIOND=1.1.1_beta08262003
release:
rm -fr gpsbabel-$(VERSIOND)
cvs tag gpsbabel_$(VERSIONU)
gpx_waypt_pr(const waypoint *waypointp)
{
char *tmp_ent;
- const char *oname = global_opts.synthesize_shortnames ?
- mkshort(mkshort_handle, waypointp->notes) :
+ const char *oname;
+ char *odesc;
+
+ /*
+ * Desparation time, try very hard to get a good shortname
+ */
+ odesc = waypointp->notes;
+ if (!odesc) {
+ odesc = waypointp->description;
+ }
+ if (!odesc) {
+ odesc = waypointp->shortname;
+ }
+
+ oname = global_opts.synthesize_shortnames ?
+ mkshort(mkshort_handle, odesc) :
waypointp->shortname;
fprintf(ofd, "<wpt lat=\"%lf\" lon=\"%lf\">\n",